home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 12
/
CU Amiga Magazine's Super CD-ROM 12 (1997)(EMAP Images)(GB)[!][issue 1997-07].iso
/
System
/
CDsupport
/
plaympeg
< prev
next >
Wrap
Text File
|
1997-04-30
|
1KB
|
33 lines
/* Play a mpeg file using AmiPEG */
options results
cr = '0a'x
if ~show('L','rexxdossupport.library') then
if ~addlib('rexxdossupport.library',0,-30) then exit
if ~show('L','rexxreqtools.library') then
if ~addlib('rexxreqtools.library',0,-30) then exit
parse arg mpegfile
cpu = rtezrequest('Which CPU do you have?'cr'(030 users select 020)','0_20|0_40|0_60','AmiPEG','rt_reqpos = reqpos_centerscr')
mode = rtezrequest('Are you using AGA, OCS or CyberGraphX?','_AGA|_OCS|_Cgfx','AmiPEG','rt_reqpos = reqpos_centerscr')
if mode <2 then do
grey = rtezrequest('Do you want colour or greyscale?','_Colour|_Greyscale','AmiPEG','rt_reqpos = reqpos_centerscr')
end
cmdstr = ':System/CDsupport/aMiPEG/bin/mpeg_play.'||word('060 020 040',cpu+1)
select
when mode = 2 then dither = 'ham6'
when mode = 1 & grey = 1 then dither = 'color'
when mode = 1 & grey = 0 then dither = 'gray'
when mode = 0 & grey = 1 then dither = 'cybergfx'
when mode = 0 & grey = 0 then dither = 'cybergfxgray'
otherwise exit
end
address command cmdstr 'QUIET DITHER='dither mpegfile